Skip to main content

TreeGraph

TreeGraph[{v1,v2,…},{u1,u2,…}] yields a tree where ui is the predecessor of vi.

TreeGraph[{e1,e2,…}] yields a tree with edges ej.

TreeGraph[{v1,v2,…},{e1,e2,…}] yields a tree with vertices vi and edges ej.

TreeGraph[{…,wi[vi,…],…},{…,wj[ej,…],…}] yields a tree with vertex and edge properties defined by the symbolic wrappers wk.

TreeGraph[{vi->vj,…}] uses rules vi->vj to specify a tree.

Please visit the official Wolfram Language Reference for more details and examples on core symbols.